package com.wipz.eoa.iphone.fixedassets.providerData;

import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

public class FixedAssetsPurchaseApplyData {
	private String BILLCODE;
	private String ASSETNAME;
	private String ASSETTYPE;
	private String ASSETMODEL;
	private String ASSETPRICE;
	private String ASSETQUANTITY;
	private String TOTALPRICE;
	private String APPLYDATE;
	private String COMMITER;
	private String DEPARTMENT;
	private String DESCRIBE;
	private String UNIT;
	private String COMMITERCODE;
	private String OWNERDEPT;
	private String ASSETTYPECODE;
	private String APPLYTYPE;
	private String ASSETCODE;
	
	public Map getFixedAssetsPurchaseApplyData(HttpServletRequest hp){
		Field[] fields = this.getClass().getDeclaredFields();
		Map map=new HashMap();
		for (int i = 0; i < fields.length; i++) {
			Field field = fields[i];
			String param=hp.getParameter(field.getName());
			if(param!=null){
				map.put(field.getName(), param);
			}
		}
		return map;	
	}
}
